<?php

include_once '../tools/DbTools.php';

DbTools::InitDb();
session_start();
$userInfo = $_SESSION[$_COOKIE['Token']];
$sql = "select CardMoney from bankcard where CardId = ".$userInfo['CardId'];
$result = DbTools::select($sql);
//关闭连接
DbTools::close();
$money = $result[0]['CardMoney'];

?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>用户中心</title>
</head>
<body>
<form action="../tools/moneyOutTool.php" method="post">
    当前余额：<input type="text" name="moneyNow" id="" value="<?php echo $money;?>" readonly="readonly" disabled="disabled" /><br />
    取钱金额： <input type="text" name="moneyOut" id="" value="" />
    <br />
    <input type="submit" value="提交"/>
</form>

</body>

</html>